<?php

namespace Profiel\Controller;

class Bijwerken extends \Controller{    
    private $_json = ['resultaat'=>true];
    
    public function index() {
        //$gegevens = filter_input(INPUT_POST,'gegevens');
        if (isset($_POST)) {
            $this->_model = new \Profiel\Model\Bijwerken();        
            $this->_json = $this->_model->bijwerken();        
            echo json_encode($this->_json);
        }
    }
    
    public function getFoto() {
        $this->_model = new \Profiel\Model\Index();        
        $this->_json = $this->_model->bijwerken();        
        echo json_encode($this->_json);
    }
}
